# -*- coding: utf-8 -*-
from common import orm
from common.utils.types import Enum


class MchAccount(orm.Model):
    """
    商户账号
    """
    __tablename__ = "mch"
    id = orm.Column(orm.Integer, primary_key=True, autoincrement=True)
    name = orm.Column(orm.VARCHAR)  # 商户名称
    password = orm.Column(orm.VARCHAR)  # 商户密码，MD5+salt
    api_key = orm.Column(orm.VARCHAR)  # 商户秘钥
    status = orm.Column(orm.Integer, default=0) #status
    created_at = orm.Column(orm.DATETIME)
    updated_at = orm.Column(orm.DATETIME)
